package com.dnjn.happiness.survey.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dnjn.happiness.survey.domain.Check;
import com.dnjn.happiness.survey.domain.CheckItem;
import com.dnjn.happiness.survey.domain.vo.CheckItemVO;
import com.dnjn.happiness.survey.domain.vo.CheckVO;
import com.dnjn.happiness.system.api.domain.SysTeam;

import java.util.List;

/**
 * 考核记录Service接口
 *
 * @author happiness
 * @date 2024-04-01
 */
public interface ICheckService  extends IService<Check>
{

    List<SysTeam> getCheckList(CheckVO vo);

    List<SysTeam> getCheck(CheckVO vo);

    List<SysTeam> getByManagerId(Long userId);

    List<SysTeam> getSubordinate(Long userId);

    int addCheck(Check check);



    Page<Check> queryList(Page page, String checkType,Long deptId);

    Page<CheckItemVO> queryCheckItemByCheckId(Page page, String nickName, String checkStatus,String checkId,Long deptId,Long teamId);

    List<CheckItem> getCheckItem(String checkStatus);

//    List<CheckItem> getStaffCheckItem();

    List<CheckItemVO> queryCheckItemByCheckIdAndUserId(Long checkId, Long userId);
}
